﻿<%@ Page Title="" Language="C#" MasterPageFile="~/rightContent.Master" AutoEventWireup="true"
    CodeBehind="FormView.aspx.cs" Inherits="WEB.Form.FormView" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="title" runat="server">
        Excel模板
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <table width="100%">
        <tr>
            <td align="center">

                <br />
                <asp:GridView ID="gv_fm" runat="server" BackColor="White" BorderColor="#DEDFDE" 
                    BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" 
                    GridLines="Vertical" onrowcommand="gv_fm_RowCommand" 
                    AutoGenerateColumns="False">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:TemplateField ShowHeader="False">
                            <ItemTemplate>
                                <asp:Button ID="bt_Del" runat="server"  CommandArgument='<%# Eval("id") %>' 
                                    CausesValidation="false"  OnClientClick="return confirm('是否确认删除？')"
                                    onclick="Del_Click" Text="删除" CssClass="Submit_gv" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:ButtonField ButtonType="Button" CommandName="edit" Text="修改" >
                        <ControlStyle CssClass="Submit_gv" />
                        </asp:ButtonField>
                        <asp:BoundField DataField="id" HeaderText="编号" />
                        <asp:BoundField DataField="formName" HeaderText="名称" />
                        <asp:BoundField DataField="excelPath" HeaderText="模板excel" />
                    </Columns>
                    <FooterStyle BackColor="#CCCC99" />
                    <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                    <RowStyle BackColor="#F7F7DE" />
                    <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#FBFBF2" />
                    <SortedAscendingHeaderStyle BackColor="#848384" />
                    <SortedDescendingCellStyle BackColor="#EAEAD3" />
                    <SortedDescendingHeaderStyle BackColor="#575357" />
                </asp:GridView>
                <br />
                <asp:Button ID="bt_Add" runat="server" onclick="bt_Add_Click" Text="添加EXCEL模板" 
                    CssClass="Submit_yellowbig" Width="106px" />
                <br />

            </td>
        </tr>
    </table>
</asp:Content>
